package com.facexue.miniprogram.constants;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
@Schema(name = "微信支付请求地址", description = "微信支付请求地址")
public enum WxPayApiConstants {
	
	@Schema(description = "Native下单")
    NATIVE_PAY("/v3/pay/transactions/native"),

    @Schema(description = "jsapi下单")
    JSAPI_PAY("/v3/pay/transactions/jsapi"),

    @Schema(description = "jsapi下单")
    H5_PAY("/v3/pay/transactions/h5"),

    @Schema(description = "APP下单")
    APP_PAY("/v3/pay/transactions/app"),

    @Schema(description = "查询订单")
    ORDER_QUERY_BY_NO("/v3/pay/transactions/out-trade-no/%s"),

    @Schema(description = "关闭订单")
    CLOSE_ORDER_BY_NO("/v3/pay/transactions/out-trade-no/%s/close"),

    @Schema(description = "申请退款")
    DOMESTIC_REFUNDS("/v3/refund/domestic/refunds"),

    @Schema(description = "查询单笔退款")
    DOMESTIC_REFUNDS_QUERY("/v3/refund/domestic/refunds/%s"),

    @Schema(description = "申请交易账单")
    TRADE_BILLS("/v3/bill/tradebill"),

    @Schema(description = "申请资金账单")
    FUND_FLOW_BILLS("/v3/bill/fundflowbill");

	@Schema(description = "类型")
    private final String type;
}
